import serviceAxios from "../index";


// export const getUserInfo = (params) => {
//     return serviceAxios({
//         url: "/api/website/queryMenuWebsite",
//         method: "post",
//         params,
//     });
// };

export const loginApi = (data) => {
    return serviceAxios({
        url: "sysuser/login",
        method: "post",
        data,
    });
};

export const getUserExtInfoApi = () => {
    return serviceAxios({
        url: "user/getUserExtInfo",
        method: "get",
    });
};

export const setUserExtInfoApi = (data) => {
    return serviceAxios({
        url: "user/setUserExtInfo",
        method: "post",
        data,
    });
};

export const getUserInfoApi = () => {
    return serviceAxios({
        url: "user/getUserInfo",
        method: "get",
    });
};


export const registApi = (data) => {
    return serviceAxios({
        url: "sysuser/regist",
        method: "post",
        data
    });
};

export const sendRegistVerifyCodeApi = (data) => {
    return serviceAxios({
        url: "user/sendRegistVerifyCode",
        method: "post",
        data
    });
};

export const sendModifyPwdVerifyCodeApi = (data) => {
    return serviceAxios({
        url: "user/sendModifyPwdVerifyCode",
        method: "post",
        data
    });
};



export const modifyUserPwdApi = (data) => {
    return serviceAxios({
        url: "sysuser/modifyUserPwd",
        method: "post",
        data
    });
};


